import 'package:json_annotation/json_annotation.dart';

part 'LoginDto.g.dart';

@JsonSerializable()
class LoginDto {
  @JsonKey(name: "password")
  String? password;
  @JsonKey(name: "phone")
  String? phone;

  LoginDto({
    this.password,
    this.phone,
  });

  factory LoginDto.fromJson(Map<String, dynamic> json) => _$LoginDtoFromJson(json);

  Map<String, dynamic> toJson() => _$LoginDtoToJson(this);
}